<h1><?PHP echo $language->getString("DELETE_MENU"); ?></h1>
<?PHP
  $template = new Template();
  if(!$_GET['delete']){
	$template->load("menu_delete");
	$template->assign_var("CANCELURL","/admin/?page=menues");
	$template->assign_var("DELETEURL","/admin/?page=menu-delete&menu=".$_GET['menu']."&delete=true");
  }
  else{
    $template->load("message");
    if(Menu::delete($GLOBALS['db']->EscapeString($_GET['menu']))){
	  $template->assign_var("MESSAGE",$language->getString("MENU_DELETED"));

    }
    else{
	  $template->assign_var("MESSAGE",$language->getString("MENU_NOT_DELETED"));
    }
  }
  $template->output();
?>